Skip to content

Conversation

@jakobbotsch
Copy link
Member

OSR is meant to be used when we can't escape, but these tailcalls are natural points where we're actually able to escape. So prefer call counting + tiering + potential transition into the tier 1 code in these situations.

This also happens to fix #111625, although I think the underlying problem is more of a phase ordering issue and might exist even outside OSR methods. I've opened #113623 to investigate this closer.

OSR is meant to be used when we can't escape, but these tailcalls are
natural points where we're actually able to escape. So prefer call
counting + tiering + potential transition into the tier 1 code in these
situations.
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 17, 2025
@jakobbotsch jakobbotsch marked this pull request as ready for review March 17, 2025 23:30
Copilot AI review requested due to automatic review settings March 17, 2025 23:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib PTAL @AndyAyersMS

Diffs

@jakobbotsch jakobbotsch requested a review from AndyAyersMS March 17, 2025 23:31
@jakobbotsch jakobbotsch merged commit a4dd239 into dotnet:main Mar 18, 2025
114 checks passed
@jakobbotsch jakobbotsch deleted the fix-111625 branch March 18, 2025 10:54
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JIT: JIT/Regression/JitBlue/Runtime_33529 fails under OSR stress

2 participants